From e81426dbd6258252b0bd8f7ece728939e3ab131a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 18 Jun 2011 12:36:38 -0400 Subject: [PATCH] Add sibling information to widget path string representations --- gtk/gtkwidgetpath.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c index bdbb7d0b2d..d0be6de63e 100644 --- a/gtk/gtkwidgetpath.c +++ b/gtk/gtkwidgetpath.c @@ -328,6 +328,12 @@ gtk_widget_path_to_string (const GtkWidgetPath *path) g_string_append_c (string, ')'); } + + if (elem->siblings) + g_string_append_printf (string, "[%d/%d]", + elem->sibling_index, + gtk_widget_path_length (elem->siblings)); + if (elem->classes) { for (j = 0; j < elem->classes->len; j++) -- 2.30.2